<?php
/*
   店铺留言板管理
*/
class ShopMessageController extends AdminController {
	public  $modelName = 'ShopMessage';
	public function modelProvider() {
		return array_merge(parent::modelProvider(), array(
			'criteria' => array('scopes'=>'related'),
		));
	}
    /*
        actionIndex  留言列表
        actionEdit   编辑留言
        actionDelete  删除留言
    */
	public function outerActions() {
		return array_merge(parent::outerActions(), array(
			'admin' => 'actions.shop.shopMessage.admin',
			'edit' => 'actions.shop.shopMessage.edit',
			'view' => 'actions.shop.shopMessage.view',
		));
	}
}
?>